using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using System.Diagnostics;
using System.Threading;

namespace Incubator.OTWorkflow
{
    public sealed partial class OTStateMachine : StateMachineWorkflowActivity
    {
        public OTStateMachine()
        {
            InitializeComponent();
        }

        private void codeActivity1_ExecuteCode(object sender, EventArgs e)
        {
            DebugMsg ("Recibido AsignarOT");
            
        }

     

        private void codeActivity2_ExecuteCode(object sender, EventArgs e)
        {
            DebugMsg("Recibido IniciarOT");
        }

     

        private void codeActivity3_ExecuteCode(object sender, EventArgs e)
        {
            DebugMsg("Recibido FinalizarOT");
        }

        void DebugMsg(string s)
        {
            Debug.WriteLine(Thread.CurrentThread.ManagedThreadId  + " " +  s);
   
        }
    }
}
